var Filebase={Category:{}};Filebase.Category.MarkAllAsRead=Class.extend({_callback:null,_proxy:null,init:function(e){this._callback=e,this._proxy=new WCF.Action.Proxy({success:$.proxy(this._success,this)}),$(".markAllAsReadButton").click($.proxy(this._click,this))},_click:function(e){e.preventDefault(),this._proxy.setOption("data",{actionName:"markAllAsRead",className:"filebase\\data\\category\\FilebaseCategoryAction"}),this._proxy.sendRequest()},_success:function(e,t,i){if(this._callback&&$.isFunction(this._callback))return this._callback();$(".nestedCategoryList").find(".badge.badgeUpdate").hide(),$(".filebaseFileList .new").removeClass("new"),document.querySelectorAll(".mainMenu .active .badge").forEach((e=>e.remove())),WCF.System.Event.fireEvent("com.woltlab.wcf.MainMenuMobile","updateButtonState"),(new WCF.System.Notification).show()}}),Filebase.File={},Filebase.File.Clipboard=Class.extend({_categoryID:0,_environment:"category",_updateHandler:null,init:function(e,t,i){this._updateHandler=e,this._environment=t,this._categoryID=i||0,require(["EventHandler"],function(e){e.add("com.woltlab.wcf.clipboard","com.woltlab.filebase.file",this._clipboardAction.bind(this))}.bind(this))},_clipboardAction:function(e){var t,i;if("com.woltlab.filebase.file.assignLabel"===e.data.actionName)Filebase.File.AssignLabelHandler.prepare(e.data.parameters);else if(e.responseData&&e.responseData.returnValues&&e.responseData.returnValues.fileData)for(i in t=e.responseData.returnValues.fileData)t.hasOwnProperty(i)&&this._updateHandler.update(i,t[i])}}),Filebase.File.InlineEditor=WCF.InlineEditor.extend({_environment:"file",_permissions:{},_redirectURL:"",_updateHandler:null,_setOptions:function(){this._environment="file",this._options=[{label:WCF.Language.get("filebase.file.edit.enable"),optionName:"enable"},{label:WCF.Language.get("filebase.file.edit.disable"),optionName:"disable"},{label:WCF.Language.get("filebase.file.edit.trash"),optionName:"trash"},{label:WCF.Language.get("filebase.file.edit.restore"),optionName:"restore"},{label:WCF.Language.get("filebase.file.edit.delete"),optionName:"delete"},{optionName:"divider"},{label:WCF.Language.get("filebase.file.edit.setAsFeatured"),optionName:"setAsFeatured"},{label:WCF.Language.get("filebase.file.edit.unsetAsFeatured"),optionName:"unsetAsFeatured"},{optionName:"divider"},{label:WCF.Language.get("wcf.global.button.edit"),optionName:"edit",isQuickOption:!0}],WCF.System.Event.fireEvent("Filebase.File.InlineEditor","setOptions",{api:this})},setUpdateHandler:function(e){this._updateHandler=e},_getTriggerElement:function(e){return e.find(".jsFileInlineEditor")},_show:function(e){var t=$(e.currentTarget).data("elementID"),i=null;return this._dropdowns[t]||((i=this._getTriggerElement(this._elements[t]).addClass("dropdownToggle")).parent().addClass("dropdown"),this._dropdowns[t]=$('